package cn.wolfcode.designpattern.flyweight;

/**
 * @author Leon
 * @date 2021/2/26
 * 具体享元对象：资源
 */
public class Resource {

    private String hash;
    private LocalFile localFile;
    private User author;

    public Resource(String hash, LocalFile localFile, User author) {
        this.hash = hash;
        this.localFile = localFile;
        this.author = author;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public LocalFile getLocalFile() {
        return localFile;
    }

    public void setLocalFile(LocalFile localFile) {
        this.localFile = localFile;
    }

    public User getAuthor() {
        return author;
    }

    public void setAuthor(User author) {
        this.author = author;
    }
}
